import $H from '../request'

// 
export function getExamData(data) {
  return $H.request({
    url: `/exam/userexam/getExamData`,
    method: 'post',
    data,
  })
}

// 
export function getExamList(data) {
  return $H.request({
    url: `/exam/userexam/getExamList`,
    method: 'post',
    data,
  })
}

// 获取考试详情
export function getExamDetail(data) {
  return $H.request({
    url: `/exam/userexam/getExamDetail`,
    method: 'post',
    data,
  })
}

//

export function getPaperCount(data) {
  return $H.request({
    url: `/exam/userexam/getUserPaperCountById`,
    method: 'post',
    data,
  })
}

//

export function getExamListData(data) {
  return $H.request({
    url: `/exam/userexam/goToExam`,
    method: 'post',
    data,
  })
}

//

export function submitExamPaper(data) {
  return $H.request({
    url: `/exam/userexam/submitExamPaper`,
    method: 'post',
    data,
  })
}

export function getMyExamRecords(data) {
  return $H.request({
    url: `/exam/userexam/myExamRecords`,
    method: 'post',
    data,
  })
}